package mysql

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(30)"json:"username"`
	Password string `gorm:"type:varchar(32)"json:"password"`
	Tel      string `gorm:"type:varchar(30)"json:"tel"`
}
type Shop struct {
	gorm.Model
	Shopname string `gorm:"type:varchar(30)"json:"shopname"`
	Price    string `gorm:"type:decimal(10,2)"json:"price"`
	Image    string `gorm:"type:varchar(255)"json:"image"`
}
type Shopcar struct {
	gorm.Model
	Shop  string `gorm:"type:varchar(30)"json:"shop"`
	Num   int    `gorm:"type:int"json:"num"`
	Price string `gorm:"type:decimal(10,2)"json:"price"`
}
type State struct {
	gorm.Model
	Userid int    `gorm:"type:int"json:"userid"`
	Liss   string `gorm:"type:varchar(30)"json:"liss"`
	Down   string `gorm:"type:varchar(30)"json:"down"`
}
